package com.adjy.pathbuilders.objects;

import org.jbox2d.dynamics.contacts.Contact;

import com.adjy.pathbuilders.physics.PhysicalObject;
import com.adjy.pathbuilders.rendering.AnimationPack;
import com.adjy.pathbuilders.sounds.SoundManager;
import com.adjy.pathbuilders.world.GameEntity;
import com.adjy.pathbuilders.world.MainChar;

/**
 * Box class implements a GameEntity Box<br>
 * This Entity can act like a wall if hit from the sides or like a floor if hit
 * from top
 */
public class CoinMove extends GameEntity {
	
	public static final float[] SIZE = { 3, 3 };
	private int ID;
	static int coinsIDmove = 1;
	private int posX;
	private int posY;
	private double divX;
	private double divY;
	private boolean isMoving;
	
	/**
	 * Creates a Box
	 * 
	 * @param x
	 *            X Position
	 * @param y
	 *            Y Position
	 * @param frame
	 *            Frame to be used for rendering
	 */
	public CoinMove(int x, int y, AnimationPack ap) {
		super(GameEntityType.COIN, x, y, SIZE[0], SIZE[1], ap, false, false, false);
		setAnimation("coin");
		
		this.setID(coinsIDmove++);
	}

	@Override
	public void hasStartedCollidingWith(PhysicalObject pObject, Contact contact) {
		
	}

	public int getPosX() {
		return posX;
	}

	public void setPosX(int posX) {
		this.posX = posX;
	}

	public int getPosY() {
		return posY;
	}

	public void setPosY(int posY) {
		this.posY = posY;
	}

	public boolean isMoving() {		
		return isMoving;
	}

	public void setMoving(boolean isMoving) {
		this.isMoving = isMoving;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		ID = iD;
	}

	public double getDivX() {
		return divX;
	}

	public void setDivX(double divX) {
		this.divX = divX;
	}

	public double getDivY() {
		return divY;
	}

	public void setDivY(double divY) {
		this.divY = divY;
	}

	
}
